import request from '@/utils/request'

// 查询数据权限列表
export function listSysDataPermission(query) {
  return request({
    url: '/permission/sysDataPermission/list',
    method: 'get',
    params: query
  })
}

// 查询数据权限详细
export function getSysDataPermission(id) {
  return request({
    url: '/permission/sysDataPermission/' + id,
    method: 'get'
  })
}

// 保存数据权限
export function saveSysDataPermission(data) {
  return request({
    url: '/permission/sysDataPermission/save',
    method: 'post',
    data: data
  })
}

// 删除数据权限
export function delSysDataPermission(id) {
  return request({
    url: '/permission/sysDataPermission/' + id,
    method: 'delete'
  })
}

// 导出数据权限
export function exportSysDataPermission(query) {
  return request({
    url: '/permission/sysDataPermission/export',
    method: 'get',
    params: query
  })
}
